package com.icinfo.cloud.provider.punish.fastcase.controller;

import com.icinfo.cloud.provider.punish.api.client.config.ConfigFastProcedureFeign;
import com.icinfo.cloud.provider.punish.config.vo.ConfigFastProcedureDocumentInfoVo;
import com.icinfo.framework.common.web.Result;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 描述: 速结程序配置表 config_fast_procedure 对应的Controller类.<br>
 *
 * @author framework generator
 * @date 2022年12月05日
 */
@RestController
@RequestMapping("/app/punish/config/fastProcedure")
@Slf4j
public class ConfigFastProcedureController {
    /**
     * 日志记录器
     */
    private static final Logger logger = LoggerFactory.getLogger(ConfigFastProcedureController.class);

    @Autowired
    private ConfigFastProcedureFeign configFastProcedureFeign;

    /**
     * V1.11.4 描述:根据部门code、适用的处罚事项、caseId查询文书信息
     * @param orgCode
     * @param listCode
     * @return
     */
    @GetMapping("/getDocumentTemplateByListCode")
    public Result<List<ConfigFastProcedureDocumentInfoVo>> getDocumentTemplateByListCode(@RequestParam("orgCode") String orgCode, @RequestParam("listCode") String listCode, @RequestParam("caseId") String caseId){
        return configFastProcedureFeign.getDocumentTemplateByListCode(orgCode, listCode,caseId);
    }

}
